<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title>食与家首届会员生日PARTY</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1  user-scalable=no" />

        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl?>/css/ui-box.css">
        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl?>/css/appcan.control.css">
        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl?>/css/ui-color.css">
        <script src="<?php echo Yii::app()->baseUrl?>/css/zy_click.js"></script>
        <script src="<?php echo Yii::app()->baseUrl?>/css/zy_control.js"></script>
         <script>
        function submit()
        {
            document.getElementById("wx-join-form").submit();
        }
        </script>
        <style>
         .abc {
        background-image: url('<?php echo Yii::app()->baseUrl?>/images/top.jpg');
        min-height: 3em;
        width: 6%;
        }
        .ub-img1 {
        -webkit-background-size: cover;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        }
        .all{
            font-size: 1em !important;
            font-family: "Microsoft YaHei" ! important;
            color:#3c3232;
        }
        
         body{
            -moz-user-select: none; /*火狐*/
            -webkit-user-select: none;  /*webkit浏览器*/
            -ms-user-select: none;   /*IE10*/
            -khtml-user-select: none; /*早期浏览器*/
            user-select: none;
         }
         a{text-decoration:none;color:#3c3232; }
        </style>
    </head>
    <body class='all ub-img1' style="background-image:url(<?php echo Yii::app()->baseUrl?>/images/bc.jpg);background-size: cover;">
        <?php $form=$this->beginWidget('CActiveForm', array(
                'id'=>'wx-join-form',
                'enableAjaxValidation'=>false,
                'enableClientValidation'=>true,
                'clientOptions'=>array(
                    'validateOnSubmit'=>true
                ),
            'htmlOptions'=>array('class'=>'ajax_form'),
        )); ?>
        <div class="ub" style="margin-top:1em;">
            <div class="ub-f2"></div>
            <div class="ub-img1 abc ub-f1"  ></div>
        </div>
        
        <div style="padding-left:1em;padding-right: 1em;">
            <div style="margin-top:0.5em"><span style="color:#fcb134"><?php echo $model->username?> 先生</span>，<strong>您好</strong></div>
         <div style="margin-top:1.0em">
             <span style="color:#fcb134"><?php echo date('Y 年 m 月 d 日',strtotime($model->r_time));?></span></br>
             茫茫人海    在<span style="color:#fcb134">烟台这座城市&nbsp;</span>    你我相识</br>
            岁月是记忆的沙漏    细数光阴 </br>
            我们已经共同走过<span style="color:#fcb134">
            <?php
            function count_days($a,$b){
                $a_dt = getdate($a);
                $b_dt = getdate($b);
                $a_new = mktime(12, 0, 0, $a_dt['mon'], $a_dt['mday'], $a_dt['year']);
                $b_new = mktime(12, 0, 0, $b_dt['mon'], $b_dt['mday'], $b_dt['year']);
                return round(abs($a_new-$b_new)/86400);
            }
            
            
            $Date_1 = date("Y-m-d");
             $d2= strtotime($Date_1);
             $d1= strtotime($model->r_time);
            $Days = round(($d2-$d1)/3600/24);
            echo $Days;
            ?>
            </span>个日子
         </div>
         <div style="margin-top:1.0em">
             感谢一直有你陪伴的每一天</br>
            食与家才有更多的感动与美好
            
         </div>
         <div style="margin-top:1.0em">
             <span style="color:#fcb134"><?php echo $model->month?>月<?php echo $model->day?>日</span>是一个特别的日子</br>
             <span style="color:#fcb134"><?php echo $model->horoscope?></span>的你<span style="color:#fcb134"><?php echo $model->push?></span>
         </div>
         <div style="margin-top:1.0em">
        无论您在哪里    您都在我们的心里</br>
        今天    为您送上最真挚的生日祝福</br>
        祝您生日快乐    We   are    family  
        </div>
          <div style="margin-top:1.0em">
        我们精心为您准备了生日派对</br>
        快来报名参加生日Party    一起Happy
          </div>
       
         
         <div style="margin-top: 1.0em;">
               <?php echo $form->textField($model,'right_float',array('style'=>'display:none')); ?>
           <a href="http://xiaoqu.qq.com/mobile/detail.html?&&_wv=1027#bid=104112&pid=5271722-1434440567&source=barindex&from=buluoadmin">
             在这里有大家给您的祝福<br>
             我也要为生日点赞祝福>>></a>
         </div>
         
         
           
         <div style="margin-top: 1.0em">
                    <?php if($model->right_float==1){?>
                          <div  align="center"><input type="submit" style="width:25%;height:2em;color:white;background-color:#fcb134;-webkit-appearance: none;" disabled="true" value="您已参加!"></div>
                    <?php }else{?>
                        <div  align="center"><input type="submit" style="width:25%;height:2em;color:white;background-color:#fcb134;-webkit-appearance: none;" value="我要参加"></div>
                <?php }?>
          </div> 
         
         
          <div style="margin-top:8em;text-align:center;">&nbsp;</div>
        </div>
       <?php $this->endWidget(); ?>
    </body>
</html>


